class AddPointToUsersIfNotExists < ActiveRecord::Migration
  def self.up
    unless User.column_names.include?("point")
      add_column :users,:point,:integer,:default=>0
    end
  end

  def self.down
    if User.column_names.include?("point")
      remove_column :users,:point
    end
  end
end
